package com.project.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.MovieTicketBean;
import com.project.service.IMovieTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("movieTicket")
public class MovieTicketController {
@Autowired
private IMovieTicketService movieTicketService;

    @RequestMapping("show")
    IPage<MovieTicketBean> findByItem(Integer pageNO, String movieName, String cinemaName, String movieTime, Integer rowNumber){
        return movieTicketService.findByItem(pageNO, movieName, cinemaName, movieTime, rowNumber);
    }

}